package com.xxx.server.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * MyBatisPlus 分页配置
 *
 * @author daixl
 * @date 2021/3/8
 */
@Configuration
public class MyBatisPlusConfig {

    /**
     * MyBatisPlus 分页配置
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
